<?php
/**
 * Created by PhpStorm.
 * User: zjx
 * Date: 2016/10/31
 * Time: 9:59
 */

namespace App\Exceptions;

abstract class WeChatException extends \Exception
{
    protected $error;
    protected $code;
    protected $debug;

    public function __construct( 
        $code  = -1, 
        $error = "未定义错误 | undefined error" , 
        $debug = false 
    ) {
        $this->code = $code;
        $this->error = $error;
        $this->debug = $debug;
    }
}